package com.yf.thumbbackend.service;

import com.yf.thumbbackend.entity.Thumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yf.thumbbackend.entity.dto.DoThumbRequest;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author echo-sp
* @description 针对表【thumb】的数据库操作Service
* @createDate 2025-04-18 20:27:12
*/
public interface ThumbService extends IService<Thumb> {

    Boolean doThumb(DoThumbRequest doThumbRequest, HttpServletRequest request);
    /**
     * 取消点赞
     * @param doThumbRequest
     * @param request
     * @return {@link Boolean }
     */
    Boolean undoThumb(DoThumbRequest doThumbRequest, HttpServletRequest request);

    Boolean hasThumb (Long blogId,Long userId);
}
